import service from '@/utils/request'

export const createOdsFtp = (data) => {
  return service({
    url: '/odsFtp/createOdsFtp',
    method: 'post',
    data
  })
}

export const deleteOdsFtp = (data) => {
  return service({
    url: '/odsFtp/deleteOdsFtp',
    method: 'delete',
    data
  })
}

export const deleteOdsFtpByIds = (data) => {
  return service({
    url: '/odsFtp/deleteOdsFtpByIds',
    method: 'delete',
    data
  })
}

export const updateOdsFtp = (data) => {
  return service({
    url: '/odsFtp/updateOdsFtp',
    method: 'put',
    data
  })
}

export const findOdsFtp = (params) => {
  return service({
    url: '/odsFtp/findOdsFtp',
    method: 'get',
    params
  })
}

export const getOdsFtpList = (params) => {
  return service({
    url: '/odsFtp/getOdsFtpList',
    method: 'get',
    params
  })
}

export const getAllOdsFtps = (params) => {
  return service({
    url: '/odsFtp/getAllOdsFtps',
    method: 'get',
    params
  })
}

export const getOdsFtp = (data) => {
  return service({
    url: '/odsFtp/getOdsFtp',
    method: 'post',
    data
  })
}

export const testOdsFtp = (data) => {
  return service({
    url: '/odsFtp/testOdsFtp',
    method: 'post',
    data
  })
}

export const initOdsFtp = () => {
  return service({
    url: '/odsFtp/initOdsFtp',
    method: 'get',
  })
}
